-
Notifications
You must be signed in to change notification settings - Fork 431
fix: Add Cython build step to Makefile #2869
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
kevinjqliu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TY! Interesting uv behavior.
I tested this locally with
make clean && make install && PYTEST_ARGS='-k tests/avro/test_decoder.py' make test
this fails on current main because the cython extension is not built, but passes here
|
the cython extension fails silently in dev setup Lines 39 to 72 in b0a7878
but will throw when fail during artifact build. iceberg-python/.github/workflows/pypi-build-artifacts.yml Lines 63 to 78 in b0a7878
|
Rationale for this change
Currently, uv sync is building the Cython extensions on first install. After running
make clean(which deletes .so files), subsequent uv sync does not rebuild them, causing:This seems to be related to some known uv behavior: astral-sh/uv#12399. The
--reinstallflag forces uv to rebuild the package and its extensions.Are these changes tested?
make clean && make testAre there any user-facing changes?
new make target